KERNEL_DIR=/home/han/work/ebf_linux_kernel_6ull_depth1/build_image/build
ARCH=arm
CROSS_COMPILE=arm-linux-gnueabihf-

APP_obj = atomaticAPP
APP_CC = arm-linux-gnueabihf-

export  ARCH  CROSS_COMPILE

obj-m := 4_atomatic.o

all:
	$(MAKE) -C $(KERNEL_DIR) M=$(CURDIR) modules


.PHONE:clean APP

clean:
	$(MAKE) -C $(KERNEL_DIR) M=$(CURDIR) clean

APP: 
	$(APP_CC)gcc $(APP_obj).c -o $(APP_obj)

